﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.UI;
using TA.DotNetUtils;

namespace TA.Turbo.Controls
{
	/// <summary>
	/// The last page button.
	/// </summary>
	public class RepeaterPageButtonLast : BaseRepeaterPageButton
	{
		internal RepeaterPageButtonLast(Repeater repeater)
			: base(repeater)
		{

		}
		/// <summary>
		/// Gets PagerSettings.Last.
		/// </summary>
		public override PagerElement PagerElement
		{
			get { return this.PagerSettings.Last; }
		}
		/// <summary>
		/// Gets the Repeater's last page index.
		/// </summary>
		public override int Index
		{
			get { return this.Repeater.NumPages - 1; }
		}
		/// <summary>
		/// Gets "last".
		/// </summary>
		public override string CssClass
		{
			get { return "last"; }
		}
	}
}